package com.hx.springboot1.dao;

import com.hx.springboot1.pojo.entity.TabMajor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface MajorDao {
    @Select("select * from tab_major")
    List<TabMajor> selectAllMajor();
    @Select("select * from tab_major where college_id = #{collegeId}")
    List<TabMajor> selectCollegeMajor(int collegeId);
}
